<%@ page import="java.util.List" %>
<%@ page import="com.dailybule.java.bean.Emp" %>
<%@ page import="com.dailybule.java.service.EmpService" %>
<%@ page import="com.dailybule.java.service.impl.EmpServiceImpl" %><%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2024/1/22
  Time: 14:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"
          integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
</head>
<body>
<%
    List<Emp> list = new EmpServiceImpl().find();
    session.setAttribute("LIST", list);
%>
<table class="table">
    <thead class="thead-dark">
    <tr>
        <th scope="col">序号</th>
        <th scope="col">姓名</th>
        <th scope="col">职位</th>
        <th scope="col">上司ID</th>
        <th scope="col">入职时间</th>
        <th scope="col">工资</th>
        <th scope="col">奖金</th>
        <th scope="col">部门ID</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="emp" items="${LIST}" varStatus="j">
        <tr>
            <th scope="row">${j.count}</th>
            <td>${emp.enname}</td>
            <td>${emp.job}</td>
            <td>${emp.mgr}</td>
            <td>${emp.hireDate}</td>
            <td>${emp.sal}</td>
            <td>${emp.comm}</td>
            <td>${emp.deptNo}</td>
        </tr>
    </c:forEach>

    </tbody>
</table>
</body>
</html>